import http from 'http';

export type RouteHandler = (req: http.IncomingMessage, res: http.ServerResponse) => void;

export type RouteOption = {
    path: string;
    method: string;
    handler: RouteHandler;
    params?: Record<string, string>;
    subRoute?: Array<subRoute>
}

export type subRoute = {
    path: string;
    method: string;
    handler: RouteHandler;
    params?: Record<string, string>;
}